<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>用户认证信息</title>
<link href="/electriccar/Public/admin/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/electriccar/Public/admin/js/jquery.js"></script>
</head>

<body>

	<div class="place">
		<span>位置：</span>
		<ul class="placeul">
			<li><a href="<?php echo U('index/welcome');?>">首页</a></li>
			<li><a href="<?php echo U('user/index');?>">用户列表</a></li>
			<li><a href="#"><?php echo ($username); ?>的用户认证信息</a></li>
		</ul>
    </div>
    
    <div class="formbody">			
		<table class="tablelist">
			<thead>
				<tr> 
					<th><input name="" type="checkbox" value="" /></th>
					<th>用户ID</th>
					<th>角色</th>
					<th>类型</th>
					<th>描述</th>
					<th>审核时间</th>
					<th>添加时间</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<?php if(is_array($listinfo)): $i = 0; $__LIST__ = $listinfo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$authentication): $mod = ($i % 2 );++$i;?><tr>
					<td><input name="" type="checkbox" value="" /></td>
					<td><?php echo ($authentication["rz_id"]); ?></td>
					<td><?php echo ($authentication['role']==0?"个人":"企业"); ?></td>
					<td><?php echo ($get_rztype[$authentication['rz_type']]); ?></td>
					<td>
					<?php if($authentication['rz_type'] == 1): echo ($authentication["rz_imges"]); ?>
					<?php else: ?>
						<img src="<?php echo ($authentication["rz_imges"]); ?>" width="100" height="100" /><?php endif; ?>	
					</td>
					<td>
					<?php if($authentication['looktime'] == ''): ?>--
					<?php else: ?>
						<?php echo (date("Y-m-d H:i:s",$authentication["looktime"])); endif; ?>
					</td>
					<td><?php echo (date("Y-m-d H:i:s",$authentication["addtime"])); ?></td>
					<td>
					<?php if($authentication['rz_states'] == 0): ?><a href="<?php echo U('user/rzuser',array('rz_id'=>$authentication['rz_id'],'user_id'=>$authentication['userid'],'rz_states'=>$authentication['rz_states']));?>" class="tablelink"><font color=red>未审核</font></a>
					<?php else: ?>
						<font color=green>已审核</font><?php endif; ?>
						<a href="<?php echo U('user/del_rzuser',array('rz_id'=>$authentication['rz_id']));?>" onclick="{if(confirm('确认删除?')){return true;}return false;}" class="tablelink">删除</a>
						
					</td>
				</tr><?php endforeach; endif; else: echo "" ;endif; ?>
			</tbody>
		</table>
    </div>
<script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
</script>
</body>

</html>